// 定义变量
@bg-image: url(../images/bg.jpg);
@head-bg-image: url(../images/head_bg.png);
@line-bg-image: url(../images/line.png);
@panel-border-color: rgba(25, 186, 139, 0.17);
@border-color: #02a6b5;
@text-color: #fff;
@highlight-color: #ffeb7b;
@secondary-text-color: rgba(255, 255, 255, 0.7);

// css初始化
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.box {
  width: 1rem;
  height: 1rem;
  background-color: pink;
}

body {
  background: @bg-image no-repeat top center;
  line-height: 1.15;
}

//头部盒子
header {
  position: relative;
  height: 1.25rem;
  height: 80px;
  background: @head-bg-image no-repeat;
  background-size: 100% 100%;

  h1 {
    font-size: 0.475rem;
    color: @text-color;
    text-align: center;
    line-height: 1rem;
  }

  .showTime {
    position: absolute;
    right: 0.375rem;
    top: 0;
    line-height: 0.9375rem;
    color: @secondary-text-color;
    font-size: 0.25rem;
  }
}

//页面mainbox主题布局
.mainbox {
  display: flex;
  min-width: 1024px;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0.125rem 0.125rem 0;
}

.column {
  flex: 3;

  &:nth-child(2) {
    flex: 5;
    margin: 0 0.125rem 0.1875rem;
  }
}

.panel {
  position: relative;
  height: 3.875rem;
  padding: 0 0.1875rem 0.5rem;
  border: 1px solid @panel-border-color;
  margin-bottom: 0.1875rem;
  background: @line-bg-image rgba(255, 255, 255, 0.03);

  //制作左上角
  &::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-left: 2px solid @border-color;
    border-top: 2px solid @border-color;
    content: "";
  }

  //制作右上角
  &::after {
    position: absolute;
    top: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid @border-color;
    border-top: 2px solid @border-color;
    content: "";
  }

  .panel-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;

    &::before {
      position: absolute;
      left: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border-left: 2px solid @border-color;
      border-bottom: 2px solid @border-color;
      content: "";
    }

    &::after {
      position: absolute;
      right: 0;
      bottom: 0;
      width: 10px;
      height: 10px;
      border-right: 2px solid @border-color;
      border-bottom: 2px solid @border-color;
      content: "";
    }
  }

  h2 {
    height: 0.6rem;
    color: @text-color;
    line-height: 0.6rem;
    text-align: center;
    font-size: 0.25rem;
    font-weight: 400;
  }

  .chart {
    height: 3rem;
    //background-color: pink;
  }
}

//数字模块
.no {
  background: rgba(101, 132, 226, 0.1);
  padding: 0.1875rem;
}

.no-hd {
  position: relative;
  border: 1px solid @panel-border-color;

  ul {
    display: flex;
  }

  li {
    position: relative;
    flex: 1;
    line-height: 1.2rem; // 行高
    font-size: 0.475rem; // 字体大小
    color: @highlight-color;
    text-align: center;
    font-family: electronicFont;

    &::after {
      content: "";
      position: absolute;
      top: 25%;
      right: 0;
      height: 50%;
      width: 2px;
      background: rgba(255, 255, 255, 0.2);
    }

    list-style: none;
  }

  &::before {
    position: absolute;
    top: 0;
    left: 0;
    content: "";
    width: 30px;
    height: 10px;
    border-top: 2px solid @border-color;
    border-left: 2px solid @border-color;
  }

  &::after {
    position: absolute;
    bottom: 0;
    right: 0;
    content: "";
    width: 30px;
    height: 10px;
    border-right: 2px solid @border-color;
    border-bottom: 2px solid @border-color;
  }
}

.no-bd {
  ul {
    display: flex;

    li {
      flex: 1;
      text-align: center;
      color: @secondary-text-color;
      font-size: 0.225rem;
      height: 0.5rem;
      line-height: 0.5rem;
      padding-top: 0.125rem;
      list-style: none;
    }
  }
}

// map模块配置
.map{
  position: relative;
  height: 10.125rem;
}
.map1 {
  width: 6.475rem;
  height: 6.475rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url(../images/map.png);
  background-size: 100% 100%;
  opacity: 0.3;
}
.map2{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8.0375rem;
  height: 8.0375rem;
  background: url(../images/lbx.png);
  background-size: 100% 100%;
  animation: rotate1 15s linear infinite;
  opacity: 0.6;
}
@keyframes rotate1 {
  from{
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.map3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7.075rem;
  height: 7.075rem;
  background: url(../images/jt.png);
  background-size: 100% 100%;
  animation: rotate2 10s linear infinite;
  opacity: 0.6;
}
@keyframes rotate2 {
  form {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}
.echart{
  position: absolute;
  top: 0;
  left: 0;
  //background-color: pink;
  width: 100%;
  height: 10.125rem;
}
